//
//  TableCellModel.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/7.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit

class TableCellModel: NSObject {
    var type : String = ""
    var amount : String = "0.0"
    var widthDraw : String = "0.0"
    var time : String = ""
    var colorFlag : Bool = false
    init(source : Dictionary<String,Any>) {
        super.init()
        print(source)
        if let typ = source["phone_model"] as? String {
            type = typ
        }
        if let createTim = source["create_time"] as? String {
            time = createTim
        }
        if let total = source["final_price"] as? Int {
            amount = NumberToString.intToFloatString(number: total, radix: 100)
        }
        if let commision = source["commission"] as? Int {
            widthDraw = NumberToString.intToFloatString(number: commision, radix: 100)
        }
    }
}
